<?php
class Bootstrap_Abstarct {
	static public function loadCache($key){
		if(!Zend_Registry::isRegistered('cache')){
			return null;
		}
		$cache = Zend_Registry::get('cache');		
		if(!empty($cache) and $cache instanceof Zend_Cache_Core) {
			return $cache->load($key);
		}else {
			return null;
		}
	}
    static public function saveCache($value,$key){
    	if(!Zend_Registry::isRegistered('cache')){
			return;
		}
		$cache = Zend_Registry::get('cache');
		if(!empty($cache) and $cache instanceof Zend_Cache_Core){
			$cache->save($value,$key);
		}
	}
}